package com.android.SchoolManagerSystem.net;

/**
 * Used to store http response info
 * 
 * @author jeson_li
 * @date 2011-3-28
 * 
 */
public final class HttpResponser {

	protected String contentEncoding;// Chaset encoding
	protected String content;// Response content
	protected int code = -1;// The response code returned by the remote HTTP
							// server
							// protected String message;// The response message
							// returned by the remote HTTP

	/**
	 * @author Jeson
	 * @date 2011-3-28
	 * @return Response content
	 */
	public String getContent() {
		return this.content;
	}

	/**
	 * @author jeson_li
	 * @date 2011-4-13
	 * @param content
	 */
	public void setContent(String content) {
		this.content = content;
	}

	/**
	 * @author Jeson
	 * @date 2011-3-28
	 * @return The response code, -1 if no valid response code.
	 */
	public int getCode() {
		return this.code;
	}

	/**
	 * @author Jeson
	 * @date 2011-3-28
	 * @return Charset encoding
	 */
	public String getContentEncoding() {
		return this.contentEncoding;
	}
}
